package com.vanysoft.business.kpi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.vanysoft.framework.config.orm.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDateTime;

/**
 * KPI分数范围设置
 *
 * @author yu_chen
 * @date 2018-07-09 14:22
 **/
@TableName("kpi_rate_setting")
public class KpiRateSetting extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * A,B,C
     */
    @Excel(name = "Rating")
    @TableField("RATING")
    private String rating;

    /**
     * 最终显示的分数
     */
    @Excel(name = "Score")
    @TableField(exist = false)
    private String score;
    /**
     * 分数的范围
     */
    @TableField("SCORE_BEFORE")
    private int scoreBefore;
    /**
     * 分数的范围
     */
    @TableField("SCORE_AFTER")
    private int scoreAfter;
    /**
     * 修改人
     */
    @Excel(name = "Update By")
    @TableField("UPDATE_USER")
    private String updateUser;

    /**
     * 修改时间
     */
    @Excel(name = "Update Date")
    @TableField("UPDATE_DATE")
    private LocalDateTime updateDate;

    public String getRating() {
        return rating;
    }

    public void setRating(String rating) {
        this.rating = rating;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public int getScoreBefore() {
        return scoreBefore;
    }

    public void setScoreBefore(int scoreBefore) {
        this.scoreBefore = scoreBefore;
    }

    public int getScoreAfter() {
        return scoreAfter;
    }

    public void setScoreAfter(int scoreAfter) {
        this.scoreAfter = scoreAfter;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public LocalDateTime getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(LocalDateTime updateDate) {
        this.updateDate = updateDate;
    }
}